package main.java.com.fei.springboot.exception;

public class CommonException extends RuntimeException {
    private Integer code;

    public CommonException() {
        super();
    }

    public CommonException(String message) {
        super(message);
    }

    public CommonException(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public CommonException(String message, Throwable cause) {
        super(message, cause);
    }

    public CommonException(Throwable cause) {
        super(cause);
    }

    public Integer getCode () {
        return code;
    }
}
